package hui.zhang.service.base.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import hui.zhang.dao.base.SubAreaRepository;
import hui.zhang.domain.base.SubArea;
import hui.zhang.service.base.SubAreaService;

@Service
@Transactional
public class SubAreaServiceImpl implements SubAreaService {
	
	@Autowired
	private SubAreaRepository subAreaRepository;

	@Override
	public void save(SubArea model) {
		subAreaRepository.save(model);
	}

	@Override
	public Page<SubArea> findAll(Specification<SubArea> sp, Pageable pageable) {
		return subAreaRepository.findAll(sp, pageable);
	}

	@Override
	public List<SubArea> findAll() {
		// TODO Auto-generated method stub
		return null;
	}


}
